package com.ss.android.article.base.feature.detail2.picgroup;

import android.app.Activity;
import android.support.v4.app.FragmentActivity;
import android.view.View;

import com.ss.android.article.base.ui.SwipeBackLayout.a;
import com.ss.android.newmedia.activity.BaseActivity;

final class l implements a {
    private final GalleryFragment a;

    l(GalleryFragment arg1) {
        this.a = arg1;

    }

    public final void a() {
        int v4 = 17432577;
        FragmentActivity v0 = this.a.getActivity();
        if(v0 != null && !((Activity)v0).isFinishing()) {
            ((Activity)v0).findViewById(16908290).setVisibility(View.INVISIBLE);
            ((Activity)v0).finish();
            if((v0 instanceof BaseActivity)) {
                ((BaseActivity)v0).superOverridePendingTransition(0, v4);
            }
            else {
                ((Activity)v0).overridePendingTransition(0, v4);
            }
        }
    }
}

